// PackageGatewaySession.java\
//记录闯关练习的所有会话
package com.example.gymlearning.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class PackageGatewaySession {
    private Long id;
    private Long userId;
    private Long packageId;
    private String status; // IN_PROGRESS-进行中, COMPLETED-完成, FAILED-失败
    private Integer score;
    private Integer totalQuestions;
    private Integer correctAnswers;
    private Date startTime;
    private Date endTime;
    private Integer duration; // 用时(分钟)
    private String questionIds; // 题目ID列表，逗号分隔
    private Date createdTime;
}